cmake_minimum_required(VERSION 2.8)
PROJECT( plates-shape )
FIND_PACKAGE( OpenCV REQUIRED )
ADD_EXECUTABLE( plates-shape src/plates-shape.cpp )

#if para compilar no windows e no linux
if(WIN32)
    TARGET_LINK_LIBRARIES( plates_morph ${OpenCV_LIBS} )
else()
    link_directories( /usr/local/lib )
    TARGET_LINK_LIBRARIES( plates-shape opencv_core opencv_imgproc opencv_highgui opencv_ml opencv_video opencv_features2d opencv_calib3d opencv_objdetect opencv_contrib opencv_legacy opencv_flann ${OpenCV_LIBS})
endif()

